﻿using System.Threading;
using System.Threading.Tasks;

namespace Infrastructure.Events
{
    public interface IIntegrationEventHandler { }

    public interface IIntegrationEventHandler<in TIntegrationEvent> : IIntegrationEventHandler
        where TIntegrationEvent : IntegrationEvent
    {
        Task HandlerAsync(TIntegrationEvent @event, CancellationToken cancellationToken = default);
    }
}
